13. Calculating Error

Calculating Error

00:00
00:00

Instructor Notes

Note that for a vector v=(x,y) \mathbf{v} = \text{(x,y)} , v \vert \mathbf{v} \vert is used here to denote the vector length or magnitude = x2+y2 \sqrt{x^2 + y^2} .

For a difference between two vectors, v=(xv,yv) \mathbf{v} = {(x_v,y_v)} and w=(xw,yw) \mathbf{w} = {(x_w,y_w)} , the magnitude vw \vert \mathbf{v - w} \vert is also the Euclidean distance between these two vectors = (xvxw)2+(yvyw)2 \sqrt{(x_v - x_w)^2 + (y_v - y_w)^2}

In this case pig \sqrt{\vert p_i - g \vert} is meant to note the root squared error of a particular particle, resulting in the general form described in the quiz:

(xpxg)2+(ypyg)2 \sqrt{(x_p - x_g)^2 + (y_p - y_g)^2}

where:

  • Position RMSE = (xpxg)2+(ypyg)2 \sqrt{(x_p - x_g)^2 + (y_p - y_g)^2}
  • Theta RMSE = (θpθg)2 \sqrt{(\theta_p - \theta_g)^2}

Root Squared Error Quiz

Given that the car’s ground truth position was (x, y, theta) = (5.2 m, 19.3 m, pi/16) and the best particle’s position was (x, y, theta) = (5 m, 18.7 m, pi/8), what is the error?

Position RMSE = (xxmeas)2+(yymeas)2 \sqrt{(x-x_{meas})^2+(y-y_{meas})^2}

Theta RMSE = (θθmeas)2 \sqrt{(\theta-\theta_{meas})^2}

Root Squared Error Quiz

What is the calculated position and theta RMSE?

SOLUTION: RMSE(x, y) = .63, RMSE(theta) = pi/16